package com.ctshk.rpc.goods.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 运费模板-DTO参数
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-09
 */
@Data
@ApiModel(value = "FreightTemplateDTO对象", description = "运费模板DTO")
public class FreightTemplateDTO implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "计价方式:1：重要；2：件数")
    private Integer pricingMethod;

    @ApiModelProperty(value = "是否包邮：0：否;1: 是")
    private Integer isFreeShipping;

    @ApiModelProperty(value = "是否货到付款：0：否;1: 是")
    private Integer cashOnDelivery;

    @ApiModelProperty(value = "排序")
    private Integer sort;
    
    @ApiModelProperty(value = "创建时间")
	private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "运费详情列表")
    private List<RegionalFreightDTO> regionalFreightDTOS = new ArrayList<>();
}
